import requests
import pytest
url = "http://49.233.108.117:3000/api/v1/topics"
def topic():
    testtopics = {
    'success': True,
    'data': {
        'id': '5f0a8093357c334168d8f0b5',
        'author_id': '5ed48cc8a40e1331ee94e905',
        'tab': 'ask',
        'content': '<div class="markdown-text"><p>是呀，天气这个事情，说不准。</p>\n</div>',
        'title': '今天怎么又下雨了',
        'last_reply_at': '2020-07-12T03:16:35.740Z',
        'good': False, 'top': False,
        'reply_count': 0, 'visit_count': 1,
        'create_at': '2020-07-12T03:16:35.740Z',
        'author': {'loginname': 'test25',
                   'avatar_url': '//gravatar.com/avatar/6eda0089af2be9af3e8c389a5f174efe?size=48'
                   },
        'replies':
            [  ],
        'is_collect': False
        }
    }
res = requests.post(url,data="testtopics")
print(res.status_code)